#include <stdio.h>

void prOneToTen()
{
	int i;

	for (i = 1; i <= 10; i++) {
		printf("%d\n", i);
	}
}

#define ARR_SIZE	10

void prOneToTen2()
{
	int arr[ARR_SIZE];
	int i;

	for (i = 0; i < ARR_SIZE; i++) {
		arr[i] = i + 1;
	}

	for (i = 0; i < ARR_SIZE; i++) {
		printf("%d\n", arr[i]);
	}
}

void prOneToTen3()
{
	int arr[ARR_SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
	int i;

	for (i = 0; i < ARR_SIZE; i++) {
		printf("%d\n", arr[i]);
	}
}

void main()
{
	prOneToTen();
	prOneToTen2();
	prOneToTen3();
}
